package com.car.utils;

import java.util.Random;
import java.util.UUID;

public class NumberUtils {
    private static String generateWorkId(){
        StringBuilder sb = new StringBuilder();
        Random random=new Random();
        for (int i = 0; i < 6; i++) {
            //0-9
            sb.append(random.nextInt(10));
        }
        return sb.toString();
    }

    /**
     * 汽车生成编号
     * @return 汽车生成编号
     */
    public static String generateCardNum(){
        UUID uuid=UUID.randomUUID();
        return uuid.toString().substring(0,16);
    }
}
